package com.uml.youmath;

import android.os.Bundle;
import android.preference.PreferenceActivity;

/** The Options screens PreferenceActivity class. This screen/view is defined
* by letting the player add their:
* Name
* Age
* Preferred game type (basketball, etc)
* TODO: Difficulty goes here?
* 
* @author cdietsch
*/
public class Options extends PreferenceActivity {
	
	int currentPos = 0;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.youmathoptions);
	}
	
	@Override
	public void onPause() {
		currentPos = SoundService.musicPlayer.getCurrentPosition();
		SoundService.currentPos = currentPos;
		SoundService.musicPlayer.pause();
		super.onPause();
	}
	
	@Override
	public void onResume() {
		SoundService.resumeAt();
		super.onResume();
	}
}
